import { createRouter, createWebHistory } from 'vue-router'
import DeepSeekView from '../views/DeepSeekView.vue'

const routes = [
  {
    path: '/',
    redirect: '/tasks'
  },
  {
    path: '/quadrant',
    name: 'Quadrant',
    component: () => import('../views/QuadrantView.vue')
  },
  {
    path: '/tasks',
    name: 'Tasks',
    component: () => import('../views/TaskListView.vue')
  },
  {
    path: '/timer',
    name: 'Timer',
    component: () => import('../views/TimerView.vue')
  },
  {
    path: '/calendar',
    name: 'Calendar',
    component: () => import('../views/CalendarView.vue')
  },
  {
    path: '/deepseek',
    name: 'deepseek',
    component: DeepSeekView,
    meta: { requiresAuth: true }
  },
  {
    path: '/anniversaries',
    name: 'Anniversary',
    component: () => import('../views/AnniversaryView.vue')
  },
  {
    path: '/anniversaries/:id',
    name: 'AnniversaryDetail',
    component: () => import('../views/AnniversaryDetailView.vue')
  },
  {
    path: '/anniversaries/:id/edit',
    name: 'AnniversaryEdit',
    component: () => import('../views/AnniversaryEditView.vue')
  },
  {
    path: '/weather',
    name: 'Weather',
    component: () => import('../views/WeatherView.vue')
  },
  {
    path: '/tasks/:id/edit',
    name: 'TaskEdit',
    component: () => import('../views/TaskEditView.vue')
  },
  // {
  //   path: '/websocket-test',
  //   name: 'WebSocketTest',
  //   component: () => import('../views/WebSocketTest.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 